package com.cal.utms.action.payment;

import com.cal.utms.dto.payment.PlacementRecordDto;
import com.cal.utms.model.payment.PlacementSheetModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class PlacementSheetRecAction extends ActionSupport implements ModelDriven<PlacementRecordDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private PlacementRecordDto recordDto = new PlacementRecordDto();

	PlacementSheetModel model = new PlacementSheetModel();
	private String date;
	private int fundid;

	public String getPlacementSheet() {
		recordDto.setPlacementRecordDtos(model.getRecordByFund(fundid, date));
		return Action.SUCCESS;
	}

	public PlacementRecordDto getRecordDto() {
		return recordDto;
	}

	public void setRecordDto(PlacementRecordDto recordDto) {
		this.recordDto = recordDto;
	}

	@Override
	public PlacementRecordDto getModel() {
		return recordDto;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public int getFundid() {
		return fundid;
	}

	public void setFundid(int fundid) {
		this.fundid = fundid;
	}

}
